package model

import (
	"fmt"
)

// TransferResponse as rpc method response
type TransferResponse struct {
	Message string
	Total   int
	Invalid int
	Latency int64
}

func (tr *TransferResponse) String() string {
	return fmt.Sprintf(
		"<Total=%v, Invalid:%v, Latency=%vms, Message:%s>",
		tr.Total,
		tr.Invalid,
		tr.Latency,
		tr.Message,
	)
}
